MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.Core.Rdl.Persistence.Json Namespace / JsonCoders Class / Optional Method / Optional<T>(JsonCoder<T>) Method
The type of the object to be encoded and decoded.
A JsonCoder<T> to encode and decode the value.

In This Topic
Optional<T>(JsonCoder<T>) Method
In This Topic
Skips empty objects during serialization and deserializes undefined values as a default object.
Syntax
'Declaration
 
Public Overloads Shared Function Optional(Of T)( _
   ByVal coder As JsonCoder(Of T) _
) As JsonCoder(Of T)
 

Parameters

coder
A JsonCoder<T> to encode and decode the value.

Type Parameters

T
The type of the object to be encoded and decoded.

Return Value

A JsonCoder<T> that handles optional values.
See Also